package com.test.ch06;
//饿汉模式
final public class SingleTon1 {
    private static final SingleTon1 obj=new SingleTon1();
    private SingleTon1()
    {

    }
    public static SingleTon1 getInstance()
    {
        return obj;
    }
}
